package com.moliku.insurance.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 通用投保|退保状态
 *
 * @author Mr.Liu
 * @since 2021/3/20
 */
@Getter
@AllArgsConstructor
public enum InsureStatusEnum {
    /**
     * 投保状态
     */
    INSURE_SUCCESS("投保成功", 2100),
    INSURE_FAIL("投保失败", 5100),
    INSURE_FAIL_5101("投保失败,重复投保", 5101),
    INSURE_FAIL_5102("投保失败,未查询到此订单", 5102),
    INSURE_FAIL_5103("投保失败,操作异常", 5103),
    OPERATION_SUCCESS("操作成功,当前订单状态为待双审核", 2999),

    /**
     * 退保状态
     */
    CANCEL_INSURE_SUCCESS("退保成功", 2200),
    CANCEL_INSURE_FAIL("退保失败", 5200),
    CANCEL_INSURE_FAIL_5201("退保失败,此保险单已经注销", 5201),
    CANCEL_INSURE_FAIL_5202("退保失败,暂无该订单!", 5202),

    /**
     * 下载保单状态
     */
    DOWNLOAD_INSURE_SUCCESS("下载保单成功", 2300),
    DOWNLOAD_INSURE_FAIL("下载保单失败", 5300),

    /**
     * 其他
     */
    OTHER_FAIL("参数错误", 5400);


    final String message;
    final int code;
}
